package com.qufadai.framework.orm.jdbc;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Define the mapping columns on POJO's fields
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Column {
	String name();
	String type();
	boolean isUnique() default false;
	boolean isNullable() default false;
	boolean isPrimaryKey() default false;
}
